//package org.ricks.net.consumer;
//
//import org.ricks.ioc.anno.Action;
//import org.ricks.net.action.anno.ActionMethod;
//import org.ricks.net.rpc.Consumer;
//import org.ricks.protocol.ByteBuf;
//import org.ricks.protocol.ProtocolManager;
//
//@Action(modularId = 1, modularName = "游戏服")
//public class UserController {
//
//
//    @ActionMethod(cmd = (short) 2051)
//    public void consumerTest(DefaultContext context) {
//        System.err.println("......");
//    }
//
//    @ActionMethod(cmd = (short) 1000)
//    public void joinGateWay(DefaultContext<DefaultPacket> context) {
//        DefaultPacket packet = context.getPacket();
//        ByteBuf buf = ByteBuf.wrap(packet.getPacket());
//        ModuleInfo moduleInfo = (ModuleInfo) ProtocolManager.read(buf);
//        //session分组
//        SessionManager.me().join(String.valueOf(moduleInfo.getModule()), context.getSession());
//        System.err.println("...... join " + moduleInfo);
//
//        Consumer.me().send((short) 2051, null, "1121312");
//    }
//}
